import { City } from "@/API/City"
import { eventBus } from "@/API/EventBus"

class PreMapLoader{
    constructor(){
        eventBus.run("onPreCreate",world.projectName)
    }
    
    load(){

    }
}

class MapManager{
    constructor(){
        world.querySelectorAll("*").forEach(e=>{
            if(e.id.substring(0, 4) == "city"){
                new City(e)
            }
        })
    }

    loadFixedResources(){

    }

    spawnRandomResources(){

    }

    loadPlayerData(){

    }

    spawnShip(){

    }

    spawnPlayerShip(){
        
    }
}

class MapResourceManager{
    spawnShip(){

    }
    
    spawnBuilding(){

    }

    spawnParticle(){

    }
}

